<%@ page contentType="text/html; charset=GBK"%>
<%
String USER_BANNER_BACKGROUND = "#1597DF";
String USER_BANNER_TEXT =  "#FFFFFF";
String USER_TABLE_BORDER = "#1C7BBD";
String USER_TABLE_LIGHT =  "#EDF6FB";
String USER_TABLE_BACKGROUND = "#FFFFFF";
String USER_TABLE_TEXT = "#4E4E4E";
if(session.getAttribute("BANNER_BACKGROUND")==null){
	Sysop tempsysop = session.getAttribute("sysop")!=null ? (Sysop)session.getAttribute("sysop") : new Sysop();
	
	dbi.execQuery("select * from ggs_palette where sCrUser='"+tempsysop.getName()+"'");
	if(dbi.rsNext()){
	   if(dbi.rsGetString("SBANNERBACKGROUND").length()>0){
		   USER_BANNER_BACKGROUND = dbi.rsGetString("SBANNERBACKGROUND");
		}else{
		   USER_BANNER_BACKGROUND = "#1597DF";
		}
	    if(dbi.rsGetString("SBANNERTEXT").length()>0){
		   USER_BANNER_TEXT = dbi.rsGetString("SBANNERTEXT");
		}else{
		   USER_BANNER_TEXT = "#FFFFFF";
		}
	    if(dbi.rsGetString("STABLEBORDER").length()>0){
		   USER_TABLE_BORDER = dbi.rsGetString("STABLEBORDER");
		}else{
		   USER_TABLE_BORDER = "#1C7BBD";
		}
	    if(dbi.rsGetString("STABLELIGHT").length()>0){
		    USER_TABLE_LIGHT = dbi.rsGetString("STABLELIGHT");
		}else{
		    USER_TABLE_LIGHT = "#EDF6FB";
		}
	    if(dbi.rsGetString("STABLEBACKGROUND").length()>0){
		   USER_TABLE_BACKGROUND = dbi.rsGetString("STABLEBACKGROUND");
		}else{
		    USER_TABLE_BACKGROUND = "#FFFFFF";
		}
		if(dbi.rsGetString("STABLETEXT").length()>0){
		   USER_TABLE_TEXT = dbi.rsGetString("STABLETEXT");
		}else{
		   USER_TABLE_TEXT = "#4E4E4E";
		}
	}
	dbi.rsClose();
	
	session.setAttribute("BANNER_BACKGROUND",USER_BANNER_BACKGROUND);
	session.setAttribute("BANNER_TEXT",USER_BANNER_TEXT);
	session.setAttribute("TABLE_BORDER",USER_TABLE_BORDER);
	session.setAttribute("TABLE_LIGHT",USER_TABLE_LIGHT);
	session.setAttribute("TABLE_BACKGROUND",USER_TABLE_BACKGROUND);
	session.setAttribute("TABLE_TEXT",USER_TABLE_TEXT);
}else{
	USER_BANNER_BACKGROUND=(String)session.getAttribute("BANNER_BACKGROUND");
	USER_BANNER_TEXT=(String)session.getAttribute("BANNER_TEXT");
	USER_TABLE_BORDER=(String)session.getAttribute("TABLE_BORDER");
	USER_TABLE_LIGHT=(String)session.getAttribute("TABLE_LIGHT");
	USER_TABLE_BACKGROUND=(String)session.getAttribute("TABLE_BACKGROUND");
	USER_TABLE_TEXT=(String)session.getAttribute("TABLE_TEXT");
}
	
	
	
	
%>
<style>
.nTab .top {
	height:35px;
	background-color:<%=USER_BANNER_BACKGROUND%>;
	color:<%=USER_BANNER_TEXT%>;
	font-weight:bold;
	text-align:center;
	vertical-align:middle;
}
.nTab .toprowspan {
	background-color:<%=USER_BANNER_BACKGROUND%>;
	color:<%=USER_BANNER_TEXT%>;
	font-weight:bold;
	text-align:center;
	vertical-align:middle;
}
.nTab .content{
	height:30px;
	background-color:<%=USER_TABLE_BACKGROUND%>;
	color:<%=USER_TABLE_TEXT%>;
}
.nTab .light{
	height:35px;
	background-color:<%=USER_TABLE_LIGHT%>;
	color:<%=USER_TABLE_TEXT%>;
}
</style>
<script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../js/main.js" charset="UTF-8"></script>